package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CreditRecycleRecordMapper;
import com.ruoyi.system.domain.CreditRecycleRecord;
import com.ruoyi.system.service.ICreditRecycleRecordService;

/**
 * 资源回收记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-26
 */
@Service
public class CreditRecycleRecordServiceImpl implements ICreditRecycleRecordService
{
    @Autowired
    private CreditRecycleRecordMapper creditRecycleRecordMapper;

    /**
     * 查询资源回收记录
     * 
     * @param recordId 资源回收记录主键
     * @return 资源回收记录
     */
    @Override
    public CreditRecycleRecord selectCreditRecycleRecordByRecordId(Long recordId)
    {
        return creditRecycleRecordMapper.selectCreditRecycleRecordByRecordId(recordId);
    }

    /**
     * 查询资源回收记录列表
     * 
     * @param creditRecycleRecord 资源回收记录
     * @return 资源回收记录
     */
    @Override
    public List<CreditRecycleRecord> selectCreditRecycleRecordList(CreditRecycleRecord creditRecycleRecord)
    {
        return creditRecycleRecordMapper.selectCreditRecycleRecordList(creditRecycleRecord);
    }

    /**
     * 新增资源回收记录
     * 
     * @param creditRecycleRecord 资源回收记录
     * @return 结果
     */
    @Override
    public int insertCreditRecycleRecord(CreditRecycleRecord creditRecycleRecord)
    {
        return creditRecycleRecordMapper.insertCreditRecycleRecord(creditRecycleRecord);
    }

    /**
     * 修改资源回收记录
     * 
     * @param creditRecycleRecord 资源回收记录
     * @return 结果
     */
    @Override
    public int updateCreditRecycleRecord(CreditRecycleRecord creditRecycleRecord)
    {
        return creditRecycleRecordMapper.updateCreditRecycleRecord(creditRecycleRecord);
    }

    /**
     * 批量删除资源回收记录
     * 
     * @param recordIds 需要删除的资源回收记录主键
     * @return 结果
     */
    @Override
    public int deleteCreditRecycleRecordByRecordIds(Long[] recordIds)
    {
        return creditRecycleRecordMapper.deleteCreditRecycleRecordByRecordIds(recordIds);
    }

    /**
     * 删除资源回收记录信息
     * 
     * @param recordId 资源回收记录主键
     * @return 结果
     */
    @Override
    public int deleteCreditRecycleRecordByRecordId(Long recordId)
    {
        return creditRecycleRecordMapper.deleteCreditRecycleRecordByRecordId(recordId);
    }
} 